package com.ktv.web.controller.com.ktv.web.handler.impl;

import com.ktv.web.controller.com.ktv.web.handler.RequestHandler;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;

/**
 * Created by ivey.yuan on 2016/3/2.
 */
@Component
public class SimpleAjaxRequestHandler extends AbstractRequestHandler implements RequestHandler{

    @Override
    public String handle(HttpServletRequest request, HttpServletResponse response) throws IOException {
        super.writerResponse(response,new Date().toString(),"text/html;charset=GBK");
        return null ;
    }
}
